package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {

    /**
     * 新增菜品和对应的口味
     *
     * @param dishDTO
     */
    public void saveWithFlavor(DishDTO dishDTO);

    PageResult find4Page(DishPageQueryDTO dishPageQueryDTO);

    void delete(String ids);

    DishVO findById(Long id);

    List<Dish> findByTypeId(Long categoryId);

    void startOrStop(Integer status,Long id);

    void updateDish(DishDTO dishDTO);

    List<DishVO> listWithFlavor(Dish dish);
}